package com.seselin.view;

import android.view.ViewGroup;
import android.widget.TextView;

import com.example.library_view_list.R;
import com.seselin.bean.TestBean;


/**
 * Created by Seselin on 2018/9/7 13:36.
 */
public class Test3ViewPart extends BaseViewPart {

    private TestBean bean;
    private TextView textView;

    public Test3ViewPart(ViewGroup root) {
        super(root, R.layout.view_test1_item);
        textView = itemView.findViewById(R.id.tv_title);
    }

    @Override
    public void setData(Object object) {
        super.setData(object);
        if (object instanceof TestBean) {
            bean = (TestBean) object;
            textView.setText(bean.getText());
        }
    }
}
